package org.jeecg.modules.zcgl.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.common.system.base.entity.DelFlagBaseEntity;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Description: 客户管理
 * @Author: jeecg-boot
 * @Date:   2020-06-17
 * @Version: V1.0
 */
@Data
@TableName("zcgl_customer_info")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="zcgl_customer_info对象", description="客户管理")
public class CustomerInfo extends DelFlagBaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

	/**微信openID*/
//	@Excel(name = "微信openID", width = 15)
    @ApiModelProperty(value = "微信openID")
    private java.lang.String openId;


    /**姓名/单位名称*/
    @Excel(name = "姓名/单位名称", width = 15)
    @ApiModelProperty(value = "姓名/单位名称")
    private String name;

    /**身份证号/信用代码*/
    @Excel(name = "身份证号/信用代码", width = 15)
    @ApiModelProperty(value = "身份证号/信用代码")
    private String code;

    /**联系电话*/
    @Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    private String phone;

    /**客户类型：1个人客户，2企业客户*/
    @ApiModelProperty(value = "客户类型：1个人客户，2企业客户")
    @Dict(dicCode = "customer_type")
    @Excel(name = "客户类型", dicCode = "customer_type", width = 15)
    private Integer type;

    /**余额*/
    @ApiModelProperty(value = "总余额")
    @Excel(name = "总余额", width = 15)
    private BigDecimal totalBalance;

//    /**联系人*/
//    @ApiModelProperty(value = "联系人")
//    private String contactPerson;

    /**家庭住址/单位地址*/
    @ApiModelProperty(value = "家庭住址/单位地址")
    @Excel(name = "家庭住址/单位地址", width = 15)
    private String contactAddress;

    /**法人*/
    @ApiModelProperty(value = "法人")
    @Excel(name = "法人", width = 15)
    private String legalPerson;
    /**法人联系电话*/
    @ApiModelProperty(value = "法人联系电话")
    @Excel(name = "法人联系电话", width = 15)
    private String legalPersonPhone;
    /**法人身份证号码*/
    @ApiModelProperty(value = "法人身份证号码")
    @Excel(name = "法人身份证号码", width = 15)
    private String legalPersonIdCard;

    /**家庭住址*/
    @ApiModelProperty(value = "家庭住址")
    @Excel(name = "家庭住址", width = 15)
    private String homeAddress;

    /**紧急联系人*/
    @ApiModelProperty(value = "紧急联系人")
    @Excel(name = "紧急联系人", width = 15)
    private String emergencyContact;
    /**紧急联系人关系	*/
    @ApiModelProperty(value = "紧急联系人关系")
    @Excel(name = "紧急联系人关系", width = 15, dicCode = "zcgl_personnel_relationship")
    @Dict(dicCode = "zcgl_personnel_relationship")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer emergencyContactRelation;
    /**紧急联系人电话*/
    @ApiModelProperty(value = "紧急联系人电话")
    @Excel(name = "紧急联系人电话", width = 15)
    private String emergencyContactPhone;
    /**邮箱地址*/
    @ApiModelProperty(value = "邮箱地址")
    @Excel(name = "邮箱地址", width = 15)
    private String emailAddress;
}
